package com.gxy.learn.design.model.construction.decorator;

/**
 * @description: 装饰者类（抽象装饰者角色）
 * @author: gaoxueyong
 * @Date: 2022/11/7 19:25
 */
public abstract class Garnish extends FastFood {
//    声明快餐类变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, double price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
